import {NgModule} from '@angular/core';
import {RouterModule, Routes} from '@angular/router';

const routes: Routes = [
  {path: '', pathMatch: 'full', redirectTo: '/welcome'},
  {path: 'welcome', loadChildren: () => import('./pages/welcome/welcome.module').then(m => m.WelcomeModule)},
  {path: 'monitor', loadChildren: () => import('./pages/monitor/monitor.module').then(m => m.MonitorModule)},
  {path: 'workplace', loadChildren: () => import('./pages/workplace/workplace.module').then(m => m.WorkplaceModule)},
];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule]
})
export class AppRoutingModule {
}
